<!DOCTYPE html>
<html lang="en" class="no-js">
 <head> 
  <meta charset="utf-8" /> 
  <title>
	<empty name="catitem">
	 分类大全_{$name}
	<else />
	{$catitem.fcname}_{$name}
	</empty>
	</title> 

  <include file="Public:header" /> 
  <div class="mianbao w120">
    <ol class="breadcrumb">
      <li><a href="#">首页</a></li>
      <li><a href="#">菜单分类</a></li>
      <li class="active">{$catitem.fcname}</li>
    </ol>
  </div>
  <!-- begin container --> 
  <div class="container"> 
   <div class="row"> 
    <div class="col-md-12 hidden-sm"> 
     <div class="row top5"> 
      <volist name="foodlists" id="vo"> 
       <div class="col-sm-3 simpleCart_shelfItem row-padding cakelist"> 
        <div class="thumbnail i_list"> 
         <eq name="islogin" value="1"> 
          <a data-toggle="modal" href="{:U('Index/show','id='.$vo['fid'])}" data-target="#modal"> 
           <else /> </a>
          <a href="{:U('Product/index','id='.$vo['fid'])}"> </a>
         </eq>
         <a href="{:U('Product/index','id='.$vo['fid'])}" class="imgtopa"> <img src="{$url}{$vo.fpic}" /> </a> 
         <div class="caption"> 
          <h3 class="item_name">{$vo.fname}</h3> 
          <input value="1" class="item_Quantity" type="hidden" /> 
          <p><span class="pull-left item_price" style="color:#FF7700;font-weight:600;font-size:14px"> ￥{$vo.fprice} </span> <span class="pull-right "><a href="javascript:;" class="btn btn-warning btn-sm item_add"><i class="fa fa-shopping-cart"></i> 加入购物车</a> </span> </p> 
          <div class="clearfix"></div> 
         </div> 
        </div> 
       </div> 
      </volist> 
     </div> 
     <ul class="pagination">
       {$page} 
     </ul> 
    </div> 
   
   </div> 
  </div>
  <!--row-->  
  <!-- begin container --> 
  <include file="Public:foot" /> 
  <include file="Public:cart" /> 
  <!-- Modal --> 
  <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
  </div>
  <style type="text/css">
.panel-body {
  height: 0px;
  overflow: hidden;
}
.thumbnail{
  transition:all 0.5s ease-in-out 0.1s;
  border-radius: 10px;
  box-shadow: 0px 3px 5px #eee;
  cursor: pointer;
}
.thumbnail:hover{
  border:2px solid #CD6665;
  box-shadow: 0px 3px 5px #ccc;
}
.simpleCart_shelfItem{
  float: left;
}
.i_list h3{text-align: left;border-bottom: 1px solid #eee; padding-bottom: 5px}
.panel{margin-bottom: 0px}
#cart{right:-230px;}
</style>
<script type="text/javascript">
 $('.item_add').click(function() {
    h = $(window).height();
    a = $(this).offset().top;
    img = $(this).parent().parent().parent().parent().find('.imgtopa img').attr('src');;
    $(this).parent().parent().parent().parent().find('.imgtopa').append('<img style="display:none,z-index:9999;border-radius:50%" class="flyshot" src="'+img+'">');
    $('.flyshot').css('position', 'fixed').show();
    $('.flyshot').css({
      width: 70,
      height:70,
    });
    $('.flyshot').animate({
      bottom: 50,
      right: 0},
      500, function() {
      
    });
  });

  $('#shala').click(function() {
    if ($(this).attr('data') == 1) {
      $(this).attr('data', '');
      $('#cart').animate({right:-230}, 500,function(){
        $('.panel-body').stop().animate({height:0}, 500);
      })
    }else{
      $(this).attr('data', '1');
       $('#cart').animate({right:0}, 500,function(){
          $('.panel-body').stop().animate({height:'190'}, 500,function(){
        $('.panel-body').stop().animate({height:'100%'},500);
        });
       })
    
    } 
  });

</script>
<!-- 瀑布流代码 -->
 </body>
</html>